package com.my.study.common.security;

import com.my.study.dto.JwtUserDto;

/**
 * 内部使用的身份验证令牌
 * 
 * @author yidujun
 * @date 2022/8/4 13:41
 */
public class InnerCustomAuthenticationToken extends AbstractCustomAuthenticationToken {
    private static final long serialVersionUID = -3139433447766692003L;

    public InnerCustomAuthenticationToken(JwtUserDto jwtUserDto) {
        super(jwtUserDto.getAuthorities());
        this.jwtUserDto = jwtUserDto;
        setAuthenticated(true);
    }

    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return null;
    }
}
